사이트 내 전체검색
[javascript] 상태 표시줄 메시지가 나온 후 다음 메시지가
로빈아빠
https://cmd.kr/javascript/519 URL이 복사되었습니다.

본문

메시지가 나온 후 다음 메시지가 나옵니다.
 
 

<scRIPT>
<!--
message =
"첫 번째^" +
"두 번째^" +
"세 번째^" +
"네 번째^"
scrollSpeed = 25 //속도
lineDelay  = 1500 //정지 시간
txt = ""
function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze  = scrollSpeed
}
else
{
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}
// Unhide -->
scrollText(0)
</scRIPT> 

댓글목록

등록된 댓글이 없습니다.

831 (6/17P)

Search

Copyright © Cmd 명령어 3.17.174.108